﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Edit.Master" Inherits="System.Web.Mvc.ViewPage<Langben.DAL.BuriedPeople>" %>

<%@ Import Namespace="Common" %>
<%@ Import Namespace="Models" %>
<asp:Content ID="Content4" ContentPlaceHolderID="CurentPlace" runat="server">
    修改落葬人
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>
            <input class="a2 f2" type="submit" value="修改" />
            <input class="a2 f2" type="button" onclick="BackList('BuriedPeople')" value="返回列表" />
        </legend>
        <div class="bigdiv">
            <%: Html.HiddenFor(model => model.RowGuid ) %>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Name) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.IsBury) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.IsBury) %>
                <%: Html.ValidationMessageFor(model => model.IsBury) %>
            </div>
             <div class="editor-label">
                <a class="anUnderLine" onclick="showChooseModal('CemeteryId','CemeteryName','../../Cemetery/Choose');">
                    <%: Html.LabelFor(model => model.CemeteryName) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkCemeteryId">
                    <%  if (Model != null)
                        {
                            if (null != Model.CemeteryId)
                            {%>
                    <table id="<%: Model.CemeteryId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteChooseTable('<%: Model.CemeteryId %>','CemeteryId','CemeteryName');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.CemeteryName%>
                            </td>
                        </tr>
                    </table>
                    <%}
                        }%>
                </div>
                <%: Html.HiddenFor(model => model.CemeteryName)%>
            </div>
            <div class="editor-label" style="display: none">
                <%: Html.LabelFor(model => model.CemeteryId) %>：
            </div>
            <div class="editor-field" style="display: none">
                <%: Html.EditorFor(model => model.CemeteryId) %>
                <%: Html.ValidationMessageFor(model => model.CemeteryId) %>
            </div>
            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('BuyerId','../../Buyer');">
                    <%: Html.LabelFor(model => model.BuyerId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkBuyerId">
                    <%  if (Model != null)
                        {
                            if (null != Model.BuyerId)
                            {%>
                    <table id="<%: Model.BuyerId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteTable('<%: Model.BuyerId %>','BuyerId');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.Buyer.BuyerName%>
                            </td>
                        </tr>
                    </table>
                    <%}
                        }%>
                </div>
                <%: Html.HiddenFor(model => model.BuyerId)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.RelationshipWithBuyer) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.RelationshipWithBuyer) %>
                <%: Html.ValidationMessageFor(model => model.RelationshipWithBuyer) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Sex) %>：
            </div>
            <div class="editor-field">
                <%=Html.DropDownListFor(model => model.Sex,Models.SysFieldModels.GetSysField("SysPerson","Sex"),"请选择")%>
               
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.NativePlace) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.NativePlace) %>
                <%: Html.ValidationMessageFor(model => model.NativePlace) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Birthdate) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBox("Birthdate", ((Model != null && Model.Birthdate != null) ? Model.Birthdate.ToString().AsDateTime().ToString("yyyy-MM-dd") : ""), new { style = "width: 244px;", @class="easyui-datebox" })%>
                <%: Html.ValidationMessageFor(model => model.Birthdate) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Deathdate) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBox("Deathdate", ((Model != null && Model.Deathdate != null) ? Model.Deathdate.ToString().AsDateTime().ToString("yyyy-MM-dd") : ""), new { style = "width: 244px;", @class="easyui-datebox" })%>
                <%: Html.ValidationMessageFor(model => model.Deathdate) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Age) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.Age) %>
                <%: Html.ValidationMessageFor(model => model.Age) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.AliveAddress) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.AliveAddress) %>
                <%: Html.ValidationMessageFor(model => model.AliveAddress) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.AliveJob) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.AliveJob) %>
                <%: Html.ValidationMessageFor(model => model.AliveJob) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.DeathCertificatesId) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.DeathCertificatesId) %>
                <%: Html.ValidationMessageFor(model => model.DeathCertificatesId) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Photo) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.Photo) %>
                <%: Html.ValidationMessageFor(model => model.Photo) %>
            </div>
            <br style="clear: both;" />
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Introduction) %>：
            </div>
            <div class="textarea-box">
                <%: Html.TextAreaFor(model => model.Introduction) %>
                <%: Html.ValidationMessageFor(model => model.Introduction) %>
            </div>
            <br style="clear: both;" />
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Remark) %>：
            </div>
            <div class="textarea-box">
                <%: Html.TextAreaFor(model => model.Remark) %>
                <%: Html.ValidationMessageFor(model => model.Remark) %>
            </div>
            <%: Html.HiddenFor(model => model.CreateTime ) %><%: Html.HiddenFor(model => model.CreatePerson ) %>
        </div>
    </fieldset>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">

    <script type="text/javascript">

        $(function () {


        });


    </script>
</asp:Content>

